<template>
  <!-- 特别推荐详情页 -->
  <div id="monthRankdetail" class="monthRankdetail">
    <Header></Header>
    <!--本来应该是导航，（方便全局替换）-->
    <div class="sepcialdetailCont">
      <div class="sepcialdetailCont_crumbs">
        <span>
          <router-link :to="{name:'home'}">首页</router-link>
        </span>
        <i class="iconfont icon-youjiantou"></i>
        <span>
          <a>排行</a>
        </span>
        <i class="iconfont icon-youjiantou"></i>
        <span>正文</span>
      </div>
      <div class="sepcialdetailCont_cluster">
        <div class="sepcialdetailCont_cluster_Left">
          <div class="just_cluster_left_title">
            <span>{{monthRankdetailB.title}}</span>
            <!-- <span>{{monthRankdetailB.CreatedTime}}</span> -->
          </div>
          <div class="just_cluster_left_info">
            <span>发布：{{monthRankdetailB.organization}}</span>
            <span>阅读：{{monthRankdetailB.readAmount}}</span>
            <span style="margin-left:85px;">{{monthRankdetailB.CreatedTime}}</span>
          </div>
          <div class="just_cluster_left_cont">
            <p v-html="monthRankdetailB.content" ref="contList"></p>
          </div>
        </div>
        <div class="sepcialdetailCont_cluster_Right">
          <JusTinTime></JusTinTime>
          <div class="just_cluster_righ_img">
            <img src="../../../../../static/syimg/xxg_10.png" />
          </div>
        </div>
        <div style="clear:both"></div>
      </div>
    </div>
    
    
  </div>
</template>

<script>
// import router from "@/router/index";
//juqery
import axios from "axios";

export default {
  name: "monthRankdetail",
  data() {
    return {
      monthRankdetail: {
        title: "我国成功研制先进的高速高精度激光汤姆逊散射仪",
        date: "2019-12-5",
        issuer: "xxx杂志",
        read: "293"
      },
      monthRankdetailB: [],
      monthRankdetailC: []
    };
  },
  methods: {
    getData() {
      axios
        .post(
          "http://bjlm.bosihw.cn/api/Lm/GetRecommendInfo?Id=" +
            this.$route.query.id +
            "&mtype=" +
            this.$route.query.mtype
        )
        .then(res => {
          this.monthRankdetailB = res.data.Data;
          this.monthRankdetailB.CreatedTime = this.monthRankdetailB.CreatedTime.substr(
            0,
            10
          );
          let userName = sessionStorage.getItem("userName");
        })
        .catch(err => {
          console.log(err);
        });
    }
  },
  created() {
    this.getData();
  }
};
</script>

<style lang="less" scoped>
#monthRankdetail {
  width: 100%;
  .sepcialdetailCont {
    width: 100%;
    height: 100%;
    display: inline-block;
    .sepcialdetailCont_crumbs {
      width: 1140px;
      height: 20px;
      margin: 0 auto;
      position: relative;
      margin-top: 28px;
      text-align: left;
      line-height: 20px;
      padding-left: 10px;
      span:nth-child(1) a,
      span:nth-child(3) a {
        color: #000000;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
      }
      i {
        color: #767c82;
        font-size: 18px;
        margin-left: 10px;
        font-weight: bold;
      }
      span:nth-child(5) {
        color: #003c80;
        font-size: 16px;
        margin-left: 10px;
        font-weight: bold;
        cursor: pointer;
      }
    }
    .sepcialdetailCont_cluster {
      width: 1140px;
      height: 100%;
      margin: 0 auto;
      margin-top: 28px;
      .sepcialdetailCont_cluster_Left {
        width: 856px;
        height: auto;
        position: relative;
        float: left;
        .just_cluster_left_title {
          width: 100%;
          height: 20px;
          line-height: 20px;
          span:nth-child(1) {
            float: left;
            font-size: 20px;
            color: #000;
            font-weight: bold;
          }
          span:nth-child(2) {
            float: right;
            color: #909090;
            font-size: 16px;
          }
        }
        .just_cluster_left_info {
          margin-top: 18px;
          width: 100%;
          height: 18px;
          line-height: 18px;
          span {
            color: #909090;
            font-size: 16px;
          }
          span:nth-child(2) {
            margin-left: 115px;
          }
        }
        .just_cluster_left_cont {
          padding-top: 15px;
          overflow: hidden;
          overflow-y: auto;
          width: 100%;
          height: 1000px;
          margin-top: 21px;
          border-top: 1px solid #eeeeee;
          p {
            font-size: 16px;
            font-family: SourceHanSansSC-Regular;
            font-weight: 400;
            color: #777;
            line-height: 26px;
            margin-bottom: 20px;
            text-indent: 2em;
            text-align: justify;
          }
        }
      }
      .sepcialdetailCont_cluster_Right {
        width: 265px;
        float: right;
        border-left: 1px solid #eeeeee;
        position: relative;
        .just_cluster_righ_img {
          margin-left: 19px;
          margin-top: 28px;
          width: 250px;
          height: 163px;
          img {
            width: 100%;
            height: 100%;
          }
        }
      }
    }
  }
}
</style>
